-- GENERATED SPELL FOR [Storm Lasher] --


function spell0_32919(pUnit, Event) --@Lightning Lash,n/a--
pUnit:FullCastSpellOnTarget(62648,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32919', 0, 1)
end

function spell1_32919(pUnit, Event) --@Lightning Lash,n/a--
pUnit:FullCastSpellOnTarget(62939,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32919', 0, 1)
end

function spell2_32919(pUnit, Event) --@Stormbolt,n/a--
pUnit:FullCastSpellOnTarget(62649,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32919', 2000, 1)
end

function spell3_32919(pUnit, Event) --@Stormbolt,n/a--
pUnit:FullCastSpellOnTarget(62938,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32919', 1500, 1)
end

function Sorts_32919(pUnit, Event)
local choix_sorts_32919 = math.random(0, 3)
if choix_sorts_32919 == 0 then
pUnit:RegisterEvent('spell0_32919', 1, 1)
end
if choix_sorts_32919 == 1 then
pUnit:RegisterEvent('spell1_32919', 1, 1)
end
if choix_sorts_32919 == 2 then
pUnit:RegisterEvent('spell2_32919', 1, 1)
end
if choix_sorts_32919 == 3 then
pUnit:RegisterEvent('spell3_32919', 1, 1)
end
end

function mob32919_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32919', math.random(1500, 3000), 1)
end

function mob32919_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32919_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32919_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32919, 1, 'mob32919_Action')
RegisterUnitEvent(32919, 2, 'mob32919_Leave')
RegisterUnitEvent(32919, 3, 'mob32919_Kill')
RegisterUnitEvent(32919, 4, 'mob32919_Die')
